# -*- encoding: utf-8 -*-
# @Author：lijinxi
# @Time ：2021/1/13 13:33
# @File：average.py

score=[]
with open('summary.csv','r',encoding='utf-8') as f:
    for line in f:
        if line.startswith('M'):
            score.append(int(line.split(',')[2]))
print(sum(score)/len(score))